
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreProductRuleRequest struct {

	RuleName string `json:"rule_name" form:"rule_name"`

	RuleValue string `json:"rule_value" form:"rule_value"`

}

func (r *StoreProductRuleRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreProductRuleRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"rule_name": "required",

		"rule_value": "required",

	}
}

func (r *StoreProductRuleRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductRuleRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductRuleRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
